package com.dmgameclient.widget;


import com.dmgameclient.R;

import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

/**
 * @name 自定义加载进度对话框
 * @Descripation <br>
 *		1、<br>
 *		2、<br>
 * @author 樊俊彬
 * @date 2014-9-22
 * @version 1.0
 */
public class CustomDialog extends Dialog {

	public CustomDialog(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.custom_dialog_layout);
		View view = (View) findViewById(R.id.view);
		AnimationDrawable animationDrawable = (AnimationDrawable) view
				.getBackground();
		animationDrawable.start();
	}
}
